Skip to main content

Get Active Window

AutomatR.Windows.Activities.GetActiveWindow

The "Get Active Window" activity in AutomatR for Windows UI Automation allows you to retrieve information about the active window on your local system. This activity is helpful when you need to interact with the currently focused application or obtain details about the active window.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before starting the activity. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Get Active Window" activity onto the workflow.
  2. Optionally, configure the delay setting.
  3. Execute the workflow to retrieve information about the active window.

Example: Consider an example where the "Get Active Window" activity is used to obtain details about the currently active window:

Get Active Window:
Display Name: "Get Active Window Details"
Delay: 2

In this example, the activity waits for 2 seconds and then retrieves information about the currently active window. The obtained details can be further utilized in the workflow.